package com.netease.yanxuan.qa.yx.yuheng.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * <Description>
 *
 * @author yanlu02
 * @date 2021/1/15 15:50
 */
@RestController
@Api(value = "healthCheck-controller", description = "健康检查实现")
public class HealthCheckController {

    /**
     * 健康检查接口
     *
     * @return HttpStatus.OK 表示成功
     */
    @ApiOperation(value = "健康检查接口")
    @RequestMapping(value = "/i/health", method = RequestMethod.GET)
    public ResponseEntity checkHealth() {
        return new ResponseEntity(HttpStatus.OK);
    }
}
